package Sort;

public class Sort1 {


    public static void countSort(int[]array){
        int []arr=new int[10];
        for(int i=0;i<array.length;i++){
            arr[array[i]]++;
        }

        for (int i = 0; i <10 ; i++) {
            for (int j = arr[i]; j >0 ; j--) {
                System.out.println(i+" ");
            }
        }

    }


}
